package com.hzm.utils;


import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @program: qy137-java
 * @description:
 * @author: 皇子明
 * @create: 2021-10-19 11:47
 **/
@Data
@NoArgsConstructor
public class Result {
    private Integer code;
    private String msg;
    private Object result;
    private Long count;

    public Result(Integer code, String msg, Object result, Long count) {
        this.code = code;
        this.msg = msg;
        this.result = result;
        this.count = count;
    }

    public Result(Integer code, String msg, Object result) {
        this.code = code;
        this.msg = msg;
        this.result = result;
    }

    public Result(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
